package com.bear.fastrepair.mvvm.ui.manager

import androidx.lifecycle.ViewModelProvider
import androidx.navigation.fragment.findNavController
import com.bear.fastrepair.R
import com.bear.fastrepair.base.BaseFragment
import com.bear.fastrepair.databinding.ManagerFragmentBinding

class ManagerPersonalFragment : BaseFragment<ManagerFragmentBinding>() {

    private lateinit var viewModel: ManagerViewModel

    override fun init() {
        viewModel = ViewModelProvider(
            requireActivity(),
            ManagerViewModelFactory()
        ).get(ManagerViewModel::class.java)
        binding.managerControl.setOnClickListener {
            findNavController().popBackStack()
            findNavController().navigate(R.id.managerAddFragment)
        }
    }

    override val title: String
        get() = "管理员"

}